<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Tumrongpun
 * Date: 10/6/11
 * Time: 9:06 PM
 * To change this template use File | Settings | File Templates.
 */


//$con = mysql_connect("localhost","root","");
//if (!$con)
//  {
//  die('ติดต่อฐานข้อมูลไม่ได้: ' . mysql_error());
//  }
//
//mysql_select_db("lc", $con);
//
//$result = mysql_query("SELECT id,date_trans FROM `order` ");
//
//while($row = mysql_fetch_array($result)){
//    $date=str_replace('/','-',$row['date_trans']);
//    if($date=strtotime($date)){
//        echo $date;
//        echo "<br />";
//        mysql_query("UPDATE `order` SET date_trans = '".$date."' WHERE id = ".$row['id']);
//    }else{
//        echo $row['date_trans'];
//        echo " Fill";
//        echo "<br />";
//    }
//echo "UPDATE `order` SET date_trans = ".$row['date_trans']." WHERE id = ".$row['id'];
//echo "<br />";
//}


//echo date("d/m/Y H:i", strtotime(str_replace('/','-',date("d/m/Y H:i", '1317940320'))));
//echo '<br/>';
echo date("d/m/Y H:i:s", time());
